package com.czy.owner.adapter;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.czy.owner.ui.BaseFragment;

import java.util.List;

/**
 * Created by asus on 2017/5/17.
 */
public class SecKillFragmentAdapter  extends FragmentStatePagerAdapter {
    private  List<BaseFragment>mFragments;
    public SecKillFragmentAdapter(FragmentManager fm, List<BaseFragment>mFragments) {
        super(fm);
        this.mFragments = mFragments;
    }

    @Override
    public int getCount() {
        return mFragments.size();
    }

    @Override
    public BaseFragment getItem(int position) {
        return mFragments.get(position);
    }



}